﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTA.BLL
{
    interface IBLLObject<Type>
    {
        /// <summary>
        /// The Id of the object
        /// </summary>
        int Id { get; }

        /// <summary>
        /// The creation date of the object
        /// </summary>
        DateTime? Created { get; }

        /// <summary>
        /// Save the object to the database
        /// </summary>
        void Save();

        /// <summary>
        /// Delete the object from te database (sets Delete on true)
        /// </summary>
        void Delete();
    }
}
